OpenCores

cygwin

Installing cygwin is pretty easy. Just download the Installer from the cygwin homepage.

After you have selected a download mirror, you will be prompted a "Select Packages" Window. We need Python for the upload script sw/common/upload.py and the memory file generator script sw/common/vhd.py, so check if its node is set to Default (This should suffice).

The Devel node contains 'make', 'subversion', 'binutils' and the 'gcc'. These packages should be selected by default.

ISE WebPack

You can download the WebPack here if you haven't already installed it.

The hardware build script xilinx/Makefile assumes that you have installed the WebPack at "C:\Xilinx". If your installation is located somewhere else, don't forget to adjust the build script.

pySerial

Download and extract pySerial. Open cygwin and navigate into the pySerial directory. Type

python setup.py install

If you still get some error when using the upload script, you probably need to install pyWin as well.

GCC Cross Compiler

Go to Cygwin Mirror Sites and download the newest source packages 'binutils-*-src.tar.bz', 'gcc-core-*-src.tar.bz' as well as 'mpfr-*-src.tar.bz'.
First we define some global variables. In cygwin type line-by-line:

export TARGET=mips-elf
export PREFIX=/usr/local/$TARGET
export PATH=$PATH:$PREFIX/bin

Extract the archives into the directories 'binutils', 'gcc' and 'mpfr' respectively. In cygwin go to your directory that contains the extracted directories and type line-by-line:

mkdir build-binutils
cd build-binutils
../binutils/configure --target=$TARGET --prefix=$PREFIX
make
make install
cd ..

Next, we compile MPFR which is a prerequisite for GCC:

mkdir build-mpfr
cd build-mpfr
../mpfr/configure -–target=$TARGET -–prefix=$PREFIX
make
make install
cd ..

And finally, GCC:

mkdir build-gcc
cd build-gcc
../gcc/configure --with-newlib --without-headers --enable-languages="c" \
--target=$TARGET --prefix=$PREFIX --with-gnu-ld --with-gnu-as --disable-libssp \
--with-mpfr=$PREFIX
make
make install
cd ..

If the compilation ends with an error, search 'build-gcc' for the binaries 'mips-elf-cc1.exe' and 'mips-elf-gcc.exe' and copy them manually into the directory /usr/local/mips-elf/bin